package com.hb.drawpoint;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;

public final class MapView extends GLSurfaceView {

    public MapView(Context context) {
        super(context);
        init();
    }

    public MapView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init(){
        setEGLContextClientVersion(2);
        setRenderer(new MapRender());
        //设置在创建着色器和主动请求刷新的时候进行绘制
        setRenderMode(RENDERMODE_WHEN_DIRTY);
        //requestRender();//请求进行绘制
    }
}
